import $http from "../http"

// 获取所有调薪记录
export const getSalaryList = params => {
    params.queryData.staffName && (params = { ...params, ...params.queryData })
    console.log(params)
    return $http.get("/salaryAdjustment", params);
}

// 获取详情
export const getSalaryDetail = params => $http.get(`/getSalaryAdjustmentDetail/${params}`);


// 新增调薪记录
export const addSalary = params => $http.post("/salaryAdjustment", params);

// 修改调薪记录内容
export const updateSalary = params => $http.put(`/salaryAdjustment/${params._id}`, params);

// 删除指定调薪内容
export const deleteSalary = (params) => $http.post(`/destroySalary`, params);